package com.ruoyi.accountant.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.Iterator;
import java.util.List;

public class DeviceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public DeviceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        protected void addCriterionForJDBCDate(String condition, Date value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value.getTime()), property);
        }

        protected void addCriterionForJDBCDate(String condition, List<Date> values, String property) {
            if (values == null || values.size() == 0) {
                throw new RuntimeException("Value list for " + property + " cannot be null or empty");
            }
            List<java.sql.Date> dateList = new ArrayList<java.sql.Date>();
            Iterator<Date> iter = values.iterator();
            while (iter.hasNext()) {
                dateList.add(new java.sql.Date(iter.next().getTime()));
            }
            addCriterion(condition, dateList, property);
        }

        protected void addCriterionForJDBCDate(String condition, Date value1, Date value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            addCriterion(condition, new java.sql.Date(value1.getTime()), new java.sql.Date(value2.getTime()), property);
        }

        public Criteria andDidIsNull() {
            addCriterion("did is null");
            return (Criteria) this;
        }

        public Criteria andDidIsNotNull() {
            addCriterion("did is not null");
            return (Criteria) this;
        }

        public Criteria andDidEqualTo(Long value) {
            addCriterion("did =", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotEqualTo(Long value) {
            addCriterion("did <>", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThan(Long value) {
            addCriterion("did >", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidGreaterThanOrEqualTo(Long value) {
            addCriterion("did >=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThan(Long value) {
            addCriterion("did <", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidLessThanOrEqualTo(Long value) {
            addCriterion("did <=", value, "did");
            return (Criteria) this;
        }

        public Criteria andDidIn(List<Long> values) {
            addCriterion("did in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotIn(List<Long> values) {
            addCriterion("did not in", values, "did");
            return (Criteria) this;
        }

        public Criteria andDidBetween(Long value1, Long value2) {
            addCriterion("did between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDidNotBetween(Long value1, Long value2) {
            addCriterion("did not between", value1, value2, "did");
            return (Criteria) this;
        }

        public Criteria andDnameIsNull() {
            addCriterion("dname is null");
            return (Criteria) this;
        }

        public Criteria andDnameIsNotNull() {
            addCriterion("dname is not null");
            return (Criteria) this;
        }

        public Criteria andDnameEqualTo(String value) {
            addCriterion("dname =", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotEqualTo(String value) {
            addCriterion("dname <>", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameGreaterThan(String value) {
            addCriterion("dname >", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameGreaterThanOrEqualTo(String value) {
            addCriterion("dname >=", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLessThan(String value) {
            addCriterion("dname <", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLessThanOrEqualTo(String value) {
            addCriterion("dname <=", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameLike(String value) {
            addCriterion("dname like", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotLike(String value) {
            addCriterion("dname not like", value, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameIn(List<String> values) {
            addCriterion("dname in", values, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotIn(List<String> values) {
            addCriterion("dname not in", values, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameBetween(String value1, String value2) {
            addCriterion("dname between", value1, value2, "dname");
            return (Criteria) this;
        }

        public Criteria andDnameNotBetween(String value1, String value2) {
            addCriterion("dname not between", value1, value2, "dname");
            return (Criteria) this;
        }

        public Criteria andDcodeIsNull() {
            addCriterion("dcode is null");
            return (Criteria) this;
        }

        public Criteria andDcodeIsNotNull() {
            addCriterion("dcode is not null");
            return (Criteria) this;
        }

        public Criteria andDcodeEqualTo(String value) {
            addCriterion("dcode =", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeNotEqualTo(String value) {
            addCriterion("dcode <>", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeGreaterThan(String value) {
            addCriterion("dcode >", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeGreaterThanOrEqualTo(String value) {
            addCriterion("dcode >=", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeLessThan(String value) {
            addCriterion("dcode <", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeLessThanOrEqualTo(String value) {
            addCriterion("dcode <=", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeLike(String value) {
            addCriterion("dcode like", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeNotLike(String value) {
            addCriterion("dcode not like", value, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeIn(List<String> values) {
            addCriterion("dcode in", values, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeNotIn(List<String> values) {
            addCriterion("dcode not in", values, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeBetween(String value1, String value2) {
            addCriterion("dcode between", value1, value2, "dcode");
            return (Criteria) this;
        }

        public Criteria andDcodeNotBetween(String value1, String value2) {
            addCriterion("dcode not between", value1, value2, "dcode");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNull() {
            addCriterion("money is null");
            return (Criteria) this;
        }

        public Criteria andMoneyIsNotNull() {
            addCriterion("money is not null");
            return (Criteria) this;
        }

        public Criteria andMoneyEqualTo(BigDecimal value) {
            addCriterion("money =", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotEqualTo(BigDecimal value) {
            addCriterion("money <>", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThan(BigDecimal value) {
            addCriterion("money >", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("money >=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThan(BigDecimal value) {
            addCriterion("money <", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyLessThanOrEqualTo(BigDecimal value) {
            addCriterion("money <=", value, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyIn(List<BigDecimal> values) {
            addCriterion("money in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotIn(List<BigDecimal> values) {
            addCriterion("money not in", values, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andMoneyNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("money not between", value1, value2, "money");
            return (Criteria) this;
        }

        public Criteria andCanUseIsNull() {
            addCriterion("can_use is null");
            return (Criteria) this;
        }

        public Criteria andCanUseIsNotNull() {
            addCriterion("can_use is not null");
            return (Criteria) this;
        }

        public Criteria andCanUseEqualTo(Integer value) {
            addCriterion("can_use =", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseNotEqualTo(Integer value) {
            addCriterion("can_use <>", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseGreaterThan(Integer value) {
            addCriterion("can_use >", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseGreaterThanOrEqualTo(Integer value) {
            addCriterion("can_use >=", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseLessThan(Integer value) {
            addCriterion("can_use <", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseLessThanOrEqualTo(Integer value) {
            addCriterion("can_use <=", value, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseIn(List<Integer> values) {
            addCriterion("can_use in", values, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseNotIn(List<Integer> values) {
            addCriterion("can_use not in", values, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseBetween(Integer value1, Integer value2) {
            addCriterion("can_use between", value1, value2, "canUse");
            return (Criteria) this;
        }

        public Criteria andCanUseNotBetween(Integer value1, Integer value2) {
            addCriterion("can_use not between", value1, value2, "canUse");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNull() {
            addCriterion("startdate is null");
            return (Criteria) this;
        }

        public Criteria andStartdateIsNotNull() {
            addCriterion("startdate is not null");
            return (Criteria) this;
        }

        public Criteria andStartdateEqualTo(Date value) {
            addCriterionForJDBCDate("startdate =", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotEqualTo(Date value) {
            addCriterionForJDBCDate("startdate <>", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThan(Date value) {
            addCriterionForJDBCDate("startdate >", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateGreaterThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("startdate >=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThan(Date value) {
            addCriterionForJDBCDate("startdate <", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateLessThanOrEqualTo(Date value) {
            addCriterionForJDBCDate("startdate <=", value, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateIn(List<Date> values) {
            addCriterionForJDBCDate("startdate in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotIn(List<Date> values) {
            addCriterionForJDBCDate("startdate not in", values, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("startdate between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andStartdateNotBetween(Date value1, Date value2) {
            addCriterionForJDBCDate("startdate not between", value1, value2, "startdate");
            return (Criteria) this;
        }

        public Criteria andDcountIsNull() {
            addCriterion("dcount is null");
            return (Criteria) this;
        }

        public Criteria andDcountIsNotNull() {
            addCriterion("dcount is not null");
            return (Criteria) this;
        }

        public Criteria andDcountEqualTo(Integer value) {
            addCriterion("dcount =", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountNotEqualTo(Integer value) {
            addCriterion("dcount <>", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountGreaterThan(Integer value) {
            addCriterion("dcount >", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountGreaterThanOrEqualTo(Integer value) {
            addCriterion("dcount >=", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountLessThan(Integer value) {
            addCriterion("dcount <", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountLessThanOrEqualTo(Integer value) {
            addCriterion("dcount <=", value, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountIn(List<Integer> values) {
            addCriterion("dcount in", values, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountNotIn(List<Integer> values) {
            addCriterion("dcount not in", values, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountBetween(Integer value1, Integer value2) {
            addCriterion("dcount between", value1, value2, "dcount");
            return (Criteria) this;
        }

        public Criteria andDcountNotBetween(Integer value1, Integer value2) {
            addCriterion("dcount not between", value1, value2, "dcount");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNull() {
            addCriterion("createtime is null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIsNotNull() {
            addCriterion("createtime is not null");
            return (Criteria) this;
        }

        public Criteria andCreatetimeEqualTo(Date value) {
            addCriterion("createtime =", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotEqualTo(Date value) {
            addCriterion("createtime <>", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThan(Date value) {
            addCriterion("createtime >", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createtime >=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThan(Date value) {
            addCriterion("createtime <", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeLessThanOrEqualTo(Date value) {
            addCriterion("createtime <=", value, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeIn(List<Date> values) {
            addCriterion("createtime in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotIn(List<Date> values) {
            addCriterion("createtime not in", values, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeBetween(Date value1, Date value2) {
            addCriterion("createtime between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andCreatetimeNotBetween(Date value1, Date value2) {
            addCriterion("createtime not between", value1, value2, "createtime");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthIsNull() {
            addCriterion("deprecated_month is null");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthIsNotNull() {
            addCriterion("deprecated_month is not null");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthEqualTo(Integer value) {
            addCriterion("deprecated_month =", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthNotEqualTo(Integer value) {
            addCriterion("deprecated_month <>", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthGreaterThan(Integer value) {
            addCriterion("deprecated_month >", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthGreaterThanOrEqualTo(Integer value) {
            addCriterion("deprecated_month >=", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthLessThan(Integer value) {
            addCriterion("deprecated_month <", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthLessThanOrEqualTo(Integer value) {
            addCriterion("deprecated_month <=", value, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthIn(List<Integer> values) {
            addCriterion("deprecated_month in", values, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthNotIn(List<Integer> values) {
            addCriterion("deprecated_month not in", values, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthBetween(Integer value1, Integer value2) {
            addCriterion("deprecated_month between", value1, value2, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andDeprecatedMonthNotBetween(Integer value1, Integer value2) {
            addCriterion("deprecated_month not between", value1, value2, "deprecatedMonth");
            return (Criteria) this;
        }

        public Criteria andFinishedIsNull() {
            addCriterion("finished is null");
            return (Criteria) this;
        }

        public Criteria andFinishedIsNotNull() {
            addCriterion("finished is not null");
            return (Criteria) this;
        }

        public Criteria andFinishedEqualTo(Integer value) {
            addCriterion("finished =", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedNotEqualTo(Integer value) {
            addCriterion("finished <>", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedGreaterThan(Integer value) {
            addCriterion("finished >", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedGreaterThanOrEqualTo(Integer value) {
            addCriterion("finished >=", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedLessThan(Integer value) {
            addCriterion("finished <", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedLessThanOrEqualTo(Integer value) {
            addCriterion("finished <=", value, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedIn(List<Integer> values) {
            addCriterion("finished in", values, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedNotIn(List<Integer> values) {
            addCriterion("finished not in", values, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedBetween(Integer value1, Integer value2) {
            addCriterion("finished between", value1, value2, "finished");
            return (Criteria) this;
        }

        public Criteria andFinishedNotBetween(Integer value1, Integer value2) {
            addCriterion("finished not between", value1, value2, "finished");
            return (Criteria) this;
        }

        public Criteria andOfAccountIsNull() {
            addCriterion("of_account is null");
            return (Criteria) this;
        }

        public Criteria andOfAccountIsNotNull() {
            addCriterion("of_account is not null");
            return (Criteria) this;
        }

        public Criteria andOfAccountEqualTo(Long value) {
            addCriterion("of_account =", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotEqualTo(Long value) {
            addCriterion("of_account <>", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountGreaterThan(Long value) {
            addCriterion("of_account >", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountGreaterThanOrEqualTo(Long value) {
            addCriterion("of_account >=", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountLessThan(Long value) {
            addCriterion("of_account <", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountLessThanOrEqualTo(Long value) {
            addCriterion("of_account <=", value, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountIn(List<Long> values) {
            addCriterion("of_account in", values, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotIn(List<Long> values) {
            addCriterion("of_account not in", values, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountBetween(Long value1, Long value2) {
            addCriterion("of_account between", value1, value2, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfAccountNotBetween(Long value1, Long value2) {
            addCriterion("of_account not between", value1, value2, "ofAccount");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyIsNull() {
            addCriterion("of_currency is null");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyIsNotNull() {
            addCriterion("of_currency is not null");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyEqualTo(Integer value) {
            addCriterion("of_currency =", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyNotEqualTo(Integer value) {
            addCriterion("of_currency <>", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyGreaterThan(Integer value) {
            addCriterion("of_currency >", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyGreaterThanOrEqualTo(Integer value) {
            addCriterion("of_currency >=", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyLessThan(Integer value) {
            addCriterion("of_currency <", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyLessThanOrEqualTo(Integer value) {
            addCriterion("of_currency <=", value, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyIn(List<Integer> values) {
            addCriterion("of_currency in", values, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyNotIn(List<Integer> values) {
            addCriterion("of_currency not in", values, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyBetween(Integer value1, Integer value2) {
            addCriterion("of_currency between", value1, value2, "ofCurrency");
            return (Criteria) this;
        }

        public Criteria andOfCurrencyNotBetween(Integer value1, Integer value2) {
            addCriterion("of_currency not between", value1, value2, "ofCurrency");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}